#!/bin/bash

pkill -9 hallelujah && rm -rf ~/Library/Input\ Methods/hallelujah.app/

login_user=`/usr/bin/stat -f%Su /dev/console`

/usr/bin/sudo -u "${login_user}" "/Library/Input Methods/hallelujah.app/Contents/MacOS/hallelujah" --install

echo "hallelujah input method registered and activated successfully" > /tmp/hallelujah-postinstall
